package com.guicent.geekai.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.guicent.geekai.entity.ChatMessage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ChatMessageMapper extends BaseMapper<ChatMessage> {

    @Select("SELECT * FROM tb_chat_message WHERE session_id = #{sessionId}")
    List<ChatMessage> selectBySessionId(@Param("sessionId") Long sessionId);
}